package com.bbs.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.bbs.dto.PostQuery;
import com.bbs.pojo.Post;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author shardemachael
 * @since 2022-04-16
 */

@Mapper
public interface PostMapper extends BaseMapper<Post> {
    IPage<Post> selectPosts(IPage<Post> page, @Param("postQuery")PostQuery postQuery);
}
